package String;
import java.util.Arrays;
public class SplitDemo {
    public static void main(String[] args) {
         String line="asd45sdsdgsd54g5dghdf5";
         String[] data=line.split("[0-9]+");
         System.out.println(Arrays.toString (data));

         line="123.458g.fd";
         data=line.split("\\.");
         System.out.println(Arrays.toString(data));
         line=".123.8446.45451.15";
         data=line.split("\\.");
         System.out.println(Arrays.toString(data));
         System.out.println(data.length);
    }
}
